<%@page import="java.util.ArrayList"%>
<%@page import="com.teach.entity.user"%>
<%@page import="java.util.function.Supplier"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.List"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>添加用户</title>
    <base href="${pageContext.request.contextPath }/"/>
		 <link rel="stylesheet" type="text/css" href="assets/css/admin.css" />
    <script src="assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/js/popper.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/js/sys.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		 <section>
      
		
		      <div class="card container-md">
        <div class="card-body">
          <form name="regForm" action="user-add.let" method="POST">
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>用户名</label>
              <div class="col-sm-9">
                <input required="required" pattern="^[a-zA-Z]\w{2,19}$" name="userName" type="text" placeholder="由3到20个单词字符组成"
                  title="由3到20个单词字符组成" class="form-control" value="">
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>密码</label>
              <div class="col-sm-9">
                <input required="required" name="userPassword" type="password" placeholder="由3到20个字符组成" title="由3到20个字符组成"
                  class="form-control" value="">
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>密码确认</label>
              <div class="col-sm-9">
                <input required="required" name="userPwdConfirm" type="password" placeholder="两次输入密码一致" class="form-control"
                  value="">
              </div>
            </div>
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>昵称</label>
              <div class="col-sm-9">
                <input required="required" name="userNickname" type="text" pattern="^[\u4100-\u9fa5]{2,8}$" placeholder="由2到8个汉字组成"
                  title="由2到8个汉字组成" class="form-control" value="">
              </div>
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>性别</label>
              <div class="col-sm-9 pt-2">
               <label class="mr-2"><input type="radio" name="userSex" value="true" checked="checked">男</label> 
               <label class="mr-2"> <input type="radio" name="userSex" value="false">女</label>
              </div>
            </div>
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">出生日期</label>
              <div class="col-sm-9">
               <input type="date" name="userBrithdate"  class="form-control" style="width:auto;"/>
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">电话</label>
              <div class="col-sm-9">
                <input name="userPhone" type="tel" placeholder="有11位数字组成" class="form-control" value="">
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">账号</label>
              <div class="col-sm-9">
                <input name="account_number" type="text" placeholder="由8-10位数字组成" class="form-control" value="">
              </div>
            </div>
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b> 地址</label>
              <div class="col-sm-9">
                <select required="required" name="userAddress" class="form-control" style="width: auto;">
                  <option value="">请选择</option>
                  <option value="湖南">湖南</option>
                  <option value="湖北">湖北</option>
                   <option value="广东">广东</option>
                </select>
              </div>
            </div>
           
              
            </div>


            <div class="form-group row">
              <div class="col-sm-9 offset-sm-3">
                <button class="btn btn-primary"><i class="fa fa-plus mr-1"></i> 添加用户 </button>
              </div>
            </div>
            
         </form>
        </div>
      </div>
    </section>

	</body>

</html>